FreeCAD поддерживает драйвера из проекта Spacenav. Это проект, нацеленный на создание драйвера с открытыми исходниками, совместимого с фирменными драйверами от 3Dconnexion.
FreeCAD supports drivers from project Spacenav. This is a project aiming to create an open-sourced driver which is compatible with the proprietary drivers from 3Dconnexion.
sudo apt-get install spacenavd
Note, however, that version 0.6 available on Ubuntu 20.04 (and probably older ones) does not seem to work. You then have to compile spacenavd from source as explained below.
sudo yum install spacenavd
apt-get install spacenavd libspnav-dev
Spacenav needs these permissions:
cp ~/.Xauthority /root/
Restart spnavd and FreeCAD
/usr/bin/spnavd_ctl x11 stop
/usr/bin/spnavd_ctl x11 start
sudo zypper install spacenavd
Это рекомендуется если Ваш дистрибутив предлагает устаревшую версию.
This is recommended if your distribution might provide an outdated version.
./configure
make
make install
./setup_init
/etc/init.d/spacenavd start
tail -n100 -f /var/log/spnavd.log
Device detection, parsing /proc/bus/input/devices
trying alternative detection, querying /dev/input/eventX device names...
trying "/dev/input/event1" ... Power Button
trying "/dev/input/event2" ... 3Dconnexion SpaceNavigator
using device: /dev/input/event2
device name: 3Dconnexion SpaceNavigator
./configure
make
fatal error: gtk/gtk.h: No such file or directory
sudo apt-get install libgtkmm-2.4-dev
make install
If you want to start spacenavd at boot using systemd, do the following:
This is only necessary for the installation from source.
Если иногда навигатор перестаёт работать, полезно перезапустить драйвер. Для перезапуска откройте терминал и запустите:
If sometimes SpaceNavigator stops working, it is good to restart driver. To restart it, go to Terminal and execute:
sudo xhost +
sudo /etc/init.d/spacenavd restart
После этого перезапустите FreeCAD. В некоторых дистрибутивах это необходимо при каждой загрузке.
A user reported on the forum they saw the following:
Spacenav daemon 0.6 failed to open config file /etc/spnavrc: No such file or directory. using defaults. adding device. device name: 3Dconnexion SpacePilot using device: /dev/input/event5 No protocol specified failed to open X11 display ":0.0"
The workaround that worked for them:
sudo cp ~/.Xauthority /root/
sudo spnavd_ctl x11 start
sudo systemctl restart spacenavd
Входные устройства 3Dconnexion поддерживаются OS X, если FreeCAD скомпилирован и используется на системе с установленным драйвером 3Dconnexion.
3Dconnexion input devices are supported on macOS, provided FreeCAD is built and used on a system with the 3Dconnexion drivers installed. You may need 3DxWare 10.7.2 or greater for macOS 12 Monterey.
Начиная с версии 0.13, трёхмерная мышь поддерживается под Windows. Вам следует установить фирменные драйвера, но поскольку поддержка спроектирована на низовом уровне, она перекрывает установки контрольной панели 3D Connexion. Тем не менее, большинство этих установок могут быть сделаны в диалоге Tools>>Customize, на вкладке Spaceball.
As of version 0.13, 3D mouse is supported under Windows. You need to have 3Dconnexion drivers installed. In FreeCAD version 1.0 a new integration with 3Dconnexion devices has been introduced. If compiled with that integration, only recent hardware is supported: to support older devices users will need to self-compile with the FREECAD_3DCONNEXION_SUPPORT cMake variable set to "Raw Input". Windows users should be aware that 3Dconnexion's driver (not the code in FreeCAD) contains a telemetry package that communicates information about your installed software back to 3Dconnexion.
Поддержка трёхмерных мышей сделана с помощью проекта spnav на Linux, и на очень низком уровне на Windows. Это значит что нет поддержки к каким-либо установкам устройства, поскольку на Linux нет хорошей поддержки этого, и на Windows это переопределено. Вот поэтому для диалога "Customize" добавлено две дополнительные страницы.
version 1.0 and above: The 3Dconnexion manipulator can be set up in its driver app (3DxWare software).
version 0.21 and below: If a Spaceball is detected the following tabs in the Customize dialog can be used to change settings:
На этой вкладке Вы можете назначить некоторые общие установки пространственной мыши. Это включает:
In this tab you have ability to set up some of general space mouse settings. They include:
Кроме этого, для каждой оси есть возможность установить:
Когда Вы откроете эту вкладку в первый раз, она будет пуста и не доступна. Чтобы её активировать, надо нажать одну из кнопок пространственной мыши. После этого слева появится список кнопок, а справа - список команд.
When you open this tab for the first time, it will be empty and unavailable. To activate it, you must press one of your space mouse buttons. After you do, list of buttons will appear on the left side, and list of commands will be available on the right side.
Для назначения некоторых команд кнопке выделите кнопку слева и её команду справа. Для стирания команды с кнопки нажмите "Clear".
Check if your FreeCAD installation links to the spacenav library. The best way to check this is by running FreeCAD from the command line terminal FreeCAD --log-file /tmp/freecad.log
and close it immediately again. Then open the file /tmp/freecad.log and search for the messages:
Connected to spacenav daemon
or
Couldn't connect to spacenav daemon. Please ignore if you don't have a spacemouse.
If none of them appears then your FreeCAD build doesn't link to the spacenav library. If the former message appears then it basically works. The latter message means there is probably a problem with the spacenav daemon.